package com.ruoyi.formwork.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.ruoyi.formwork.domain.OperationFormWork;
import com.ruoyi.formwork.mapper.OperationFormWorkMapper;
import com.ruoyi.formwork.service.OperationFormWorkService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class OperationFormWorkServiceImpl extends ServiceImpl<OperationFormWorkMapper, OperationFormWork> implements OperationFormWorkService {

    @Resource
    private OperationFormWorkMapper OperationFormWorkMapper;

    @Override
    public List<OperationFormWork> queryOperationFormWork(OperationFormWork operationFormWork) {
        return OperationFormWorkMapper.queryOperationFormWork(operationFormWork);
    }

    @Override
    public boolean deleteOperationFormWork(OperationFormWork operationFormWork) {

        return OperationFormWorkMapper.deleteOperationFormWork(operationFormWork.getId())>0;
    }
}
